//
//  activityTableViewCell.m
//  豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "activityTableViewCell.h"

@implementation activityTableViewCell

- (void)dealloc {
    [_imgV release];
    [_imageV3 release];
    [_imageV2 release];
    [_imageV1 release];
    [_imageV release];
    
    [_titleLabel release];
    [_timeLabel release];
    [_typeLabel release];
    [_intereLabel release];
    [_addressLabel release];
    [_view release];

    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    
    return self;
}

- (void)createCell {
    
    self.imgV = [[UIImageView alloc]init];
    [self.contentView addSubview:_imgV];
    [_imgV release];
    
    self.titleLabel = [[UILabel alloc]init];
    [self.imgV addSubview:_titleLabel];
    [_titleLabel release];
    
    self.view = [[UIView alloc]init];
    [self.imgV addSubview:_view];
    [_view release];
    
    self.imageV1 = [[UIImageView alloc]init];
    [self.view addSubview:_imageV1];
    [_imageV1 release];
    
    self.imageV2 = [[UIImageView alloc]init];
    [self.view addSubview:_imageV2];
    [_imageV2 release];
    
    self.imageV3 = [[UIImageView alloc]init];
    [self.view addSubview:_imageV3];
    [_imageV3 release];
    
    self.imageV = [[UIImageView alloc]init];
    [self.view addSubview:_imageV];
    [_imageV release];
    
    self.timeLabel = [[UILabel alloc]init];
    [self.view addSubview:_timeLabel];
    [_timeLabel release];
    
    self.addressLabel = [[UILabel alloc]init];
    [self.view addSubview:_addressLabel];
    [_addressLabel release];
    
    self.typeLabel = [[UILabel alloc]init];
    [self.view addSubview:_typeLabel];
    [_typeLabel release];
    
    self.intereLabel = [[UILabel alloc]init];
    [self.view addSubview:_intereLabel];
    [_intereLabel release];
    
    
    
}


- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    _imgV.frame = CGRectMake(10, 5, 355, 185);
    _imgV.layer.cornerRadius = 10;
    
    _titleLabel.frame = CGRectMake(10, 0,  350, 40);
    
    _view.frame = CGRectMake(5, 35, 345, 140);
    _view.layer.cornerRadius = 5;
    _view.backgroundColor = [UIColor whiteColor];
    
    _imageV.frame = CGRectMake(250, 4, 90, 132);
    
    _imageV1.frame = CGRectMake(5, 5, 20, 20);
    
    _imageV2.frame = CGRectMake(5, 35, 20, 20);
    
    _imageV3.frame = CGRectMake(5, 65, 20, 20);
    
    _timeLabel.frame = CGRectMake(32, 0, 200, 30);
    _timeLabel.font = [UIFont systemFontOfSize:13];
    
    _addressLabel.frame = CGRectMake(32, 30, 210, 30);
    _addressLabel.font = [UIFont systemFontOfSize:13];
    
    _typeLabel.frame = CGRectMake(32, 60, 200, 30);
    _typeLabel.font = [UIFont systemFontOfSize:13];
    
    
    _intereLabel.frame = CGRectMake(10, 112, 230, 20);
    _intereLabel.font = [UIFont systemFontOfSize:13];
    
    
    
    
    
}








- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
